﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="StockAdd.aspx.cs" 
Inherits="Ankin.EHBH.Web.Modules.SystemManage.StockAdd" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">
<script language="javascript" type="text/javascript">
// <!CDATA[


function Button2_onclick() {
 
}

// ]]>
</script>


 <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="../../js/jquery.flexselect.js" type="text/javascript"></script>

    <script src="../../js/liquidmetal.js" type="text/javascript"></script>

    <script src="../../js/popup.js" type="text/javascript"></script>

    <script type="text/javascript">
      $(document).ready(function() {
        $("select[class*=flexselect]").flexselect();
        
        
        //获取供应商文本
        $('#ctl00_cphcenter_ddlSupply_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlSupply_flexselect').attr('value');
        $('#ctl00_cphcenter_hdfSupply').attr('value',tt);
        })
        
        //获取产品名
        $('#ctl00_cphcenter_ddlExp_Name_flexselect').blur(function() 
        {var tt = $('#ctl00_cphcenter_ddlExp_Name_flexselect').attr('value');
                    if(tt!="")
            {
            $("#ctl00_cphcenter_ddlExpName2").setSelectedText(tt);
            
            //得到选中索引
            //var index=$("#ctl00_cphcenter_ddlExpName2").getSelectedIndex();
            
            //$("#ctl00_cphcenter_ddlExpName2")[0].options(index).selected = true;
            
            //触发onchang事件
            $("#ctl00_cphcenter_ddlExpName2").change();
        }
        $('#ctl00_cphcenter_hdfExp_Name').attr('value',tt);
        })
        
        /*测试COOKIES*/
        if($.cookie('popupStatus')==1)
        {
            disablePopup();
            centerPopup();
            loadPopup();
        }
        //写Cookies
        $('#wCookies').click(function(){
		$.cookie('name', 'test11213',{expires: 7});				  
		});
		//读Cookies
		$('#rCookies').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		
		$('#rCookies1').click(function(){
		var test = $.cookie('popupStatus');
		alert (test);
		});
		//删除
		$('#dCookies').click(function(){
		$.cookie('popupStatus', '0',{expires: 7});							  
		});
		
      });




    </script>



<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="right-color" >
                系统设置—添加库房</td>
      </tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
                    <tr>
                        <td class="bor bor-bg">添加科室</td>
                    </tr>
                    <tr>
                    <td class="bor">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="t1">
                    <asp:Panel ID="Panel1" runat="server">
                    <tr>
                         <td align="right">序号</td>
                        <td class="bm">
                            <asp:Label ID="labSerialNo_Id" runat="server"></asp:Label></td></tr></asp:Panel>
                   <tr>
                        <td align="right" width="120">
                            库房名称</td>
                        <td><asp:TextBox ID="txtName_Id" runat="server" Width="150"></asp:TextBox></td></tr>
                    <tr><td align="right">
                        库房代码</td>
                        <td><asp:TextBox ID="txtCode_Id" runat="server" Width="150" ></asp:TextBox></td></tr>
        
     
       
    </table>
  <table  width="200" border="0" cellpadding="0" cellspacing="0" style="margin:13px 0px 13px 60px;">
        <tr>
            <td><asp:Button ID="btnOK" runat="server"  Text="确定" OnClick="btnOK_Click" CssClass="button" Width="57" Height="25" style="cursor:pointer;" /></td>
             <td><asp:Button ID="btn_modify" runat="server" OnClick="btn_modify_Click" Text="修改" Visible="False" CssClass="button" Width="57" Height="25" style="cursor:pointer;" /></td>
                <td><asp:Button ID="btnCancle" runat="server" Text="取消" OnClick="btrnCancle_Click" CssClass="button" Width="57" Height="25" style="cursor:pointer;" />
            </td>
        </tr>      
    </table>     
    </td>
    </tr>
    </table>
</asp:Content>


